import React from 'react';
import './item.css';

const Item = (props)=>{
    return(
        <button 
        id={`type${props.typeId}`}
        onClick={props.onClick}
        className={`itemParent ${props.classType} ${props.isChoose}`}
        data-index={props.index}>
            {props.name}
        </button>
    )
}

export default Item;